package models

import (
	"gorm.io/gorm"
	"time"
)

type Gift struct {
	Id        uint           `gorm:"column:id;type:bigint(20);primaryKey;not null;" json:"id"`
	Zbj       uint           `gorm:"column:zbj;type:bigint(20);not null;" json:"zbj"`
	Stock     uint           `gorm:"column:stock;type:bigint(50);default:NULL;" json:"stock"`
	FreeGift  uint           `gorm:"column:free_gift;type:bigint(75);default:NULL;" json:"free_gift"`
	Name      string         `gorm:"column:name;type:varchar(255);default:NULL;" json:"name"`
	Price     float64        `gorm:"column:price;type:decimal(10, 2);default:NULL;" json:"price"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}
